export const defaultRoutes = [
  {
    path: "/",
    // name: "layout",
    // 没有输入路径时，重定向到首页home
    redirect: "/home",
    component: () =>
      import(/* webpackChunkName: "layout" */ "@/page/basic-layout/index.vue"),
    children: [
      {
        path: "",
        redirect: "/home",
        component: () =>
          import(
            /* webpackChunkName: "headSearch" */
            "@/page/top-query-layout/index.vue"
          ),
        children: [
          {
            path: "home",
            name: "home",
            component: () =>
              import(/* webpackChunkName: "home" */ "@/page/home/index.vue")
          },
          {
            path: "spotmall",
            name: "spotmall",
            component: () =>
              import(
                /* webpackChunkName: "spotmall" */
                "@/page/spotmall/index.vue"
              )
          },
          {
            path: "spotmall/quotation",
            name: "spotmall-quotation",
            component: () =>
              import(
                /* webpackChunkName: "quotation" */
                "@/page/spotmall/quotation/index.vue"
              )
          }
        ]
      },
      {
        path: "market/reference",
        name: "market-reference",
        component: () =>
          import(
            /* webpackChunkName: "reference" */
            "@/page/market/reference/index.vue"
          )
      },
      {
        path: "about/mall",
        name: "aboutMall",
        component: () =>
          import(/* webpackChunkName: "about" */ "@/page/about/mall.vue")
      },
      {
        path: "about/erp",
        name: "aboutErp",
        component: () =>
          import(/* webpackChunkName: "about" */ "@/page/about/erp.vue")
      },
      {
        path: "about/us",
        name: "aboutUs",
        component: () =>
          import(/* webpackChunkName: "about" */ "@/page/about/us.vue")
      },
      {
        path: "404",
        name: "404",
        component: () => import(/* webpackChunkName: "404" */ "@/page/404.vue")
      }
    ]
  },
  {
    path: "/login",
    name: "login",
    component: () =>
      import(/* webpackChunkName: "login" */ "@/page/login/index.vue")
  },
  {
    path: "/register",
    name: "register",
    component: () =>
      import(/* webpackChunkName: "register" */ "@/page/login/index.vue")
  }
];
